package com.zp.self.module.level_5_设计模式.创建型模式.Ⅴ_建造者模式.自行车构造;

import org.junit.Test;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/6/26 20:24
 * @description ：业务代码，需要一辆车
 */
public class Client {

    @Test
    public  void testBuildBike(){
        Bike bike1 = new Director(new MobikeBuilder()).constuct();
        System.out.println(bike1.toString());
        System.out.println("----------分割线---------------");

        Bike bike2 = new Director(new OfoBuilder()).constuct();
        System.out.println(bike2.toString());
    }
}
